package proxy.dynamic;

/**
 * @author mubei
 * @date 2021/12/14
 * @description
 */
public class Test {

    public static void main(String[] args) {
        TeacherDao teacherDao = new TeacherDao();
        ITeacherDao proxyInstance = (ITeacherDao)new ProxyFactory(teacherDao).getProxyInstance();
        proxyInstance.teach();
    }
}
